package mytest.jedis.advanced;

import org.junit.Before;
import org.junit.Test;

import redis.clients.jedis.Jedis;

public class Publish {
private Jedis jedis;
	
	@Before
	public void before() {
		jedis = new Jedis("192.168.1.109");
	}
	
	/**
	 * 频道模式
	 */
	@Test
	public void testPublish() {
		jedis.publish("foo", "bar");
	}
	
	@Test
	public void test() {
		jedis.publish("ps", "ppp");
	}
}
